package com.cl.pattern.proxy.staticed;

import com.cl.pattern.proxy.Buyer;

/**
 * 代理类
 * 房产中介
 * @Description
 * @Author Small
 * @Date 2020/6/17 14:48
 * @Version 1.0
 **/
public class HouseProxy implements Buyer {

    private Buyer buyer;

    public  HouseProxy (Buyer buyer){
        this.buyer = buyer;
    }

    public void buyHouse() {

        System.out.println("1、寻找房源");
        this.buyer.buyHouse();
        System.out.println("2、协助房管局备案");
    }
}
